package ynu.edu.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/provider")
    public Mono<String> testProvider() {
        return Mono.just("Provider service is working normally");
    }

    @GetMapping("/consumer")
    public Mono<String> testConsumer() {
        return Mono.just("Consumer service is working normally");
    }

    @GetMapping("/login")
    public Mono<String> login() {
        return Mono.just("Login successful");
    }

    @GetMapping("/register")
    public Mono<String> register() {
        return Mono.just("Registration successful");
    }
} 